/**
 * @author 徐楠
 * @date 2021/11/17 15:05
 * @version 1.0
 */

package edu.nuist.javaProjct.view;

import javax.swing.*;

public class Test1 {
    private JPanel Tser1jpanel;
    private JTable jTable;
    private JButton button1;
    private JButton button2;
    private JTable table1;

    static JFrame testFrame = new JFrame("测试1");

    public Test1(){
        //System.out.println("TestForm  gouzao ff ");
        TestTableModel testTableModel = new TestTableModel();
        System.out.println(testTableModel.data);
        System.out.println(testTableModel.getRowCount());
        System.out.println(testTableModel.getColumnCount());
        //System.out.println(testTableModel);
        table1.setModel(testTableModel);
        table1.setVisible(true);
    }
    public static void main(String[] args) {
        Test1 testForm = new Test1();
        testFrame.setContentPane(testForm.Tser1jpanel);
        testFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        testFrame.pack();
        testFrame.setVisible(true);
        testFrame.setSize(800,800);
    }
}
